﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TestReflectInterface;

namespace TestReflect
{
    public class MyType : IMyInterface
    {
        public MyType()
        {
        }

        public MyType(string message)
        {
            this.message = message;
        }

        #region IMyInterface 成员
        string message;
        public string Message
        {
            get
            {
                return message;
            }
            set
            {
                message = value;
            }
        }

        public void DoWork()
        {
            Console.WriteLine(message);
        }

        #endregion
    }
}
